package com.ztc.ZtcRoutePrice.bean;
import com.aqgj.util.BaseEntity;
import com.ztc.ZtcRoute.bean.ZtcRoute;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 线路价格
 */
@Entity
@Table(name = "ztc_route_price")
public class ZtcRoutePrice implements BaseEntity{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//ä¸»é”®

    private String fkRouteStartSiteId;//起始站点id

    private String fkRouteEndSiteId;//终点id

    private String distance;//距离
    private String price;//价格

    private java.lang.Integer type;//类型：0-拼车，1-租车，2-包车，3-专车',
    
    private ZtcRoute ztcRoute;
    
    private String fkZtcRouteId; //所属线路id

    public void setId(String value){
        this.id = value;
    }
    public void setDistance(String value){
        this.distance = value;
    }
    public void setPrice(String value){
        this.price = value;
    }
    public void setType(java.lang.Integer value){
        this.type = value;
    }
    public void setZtcRoute(ZtcRoute ztcRoute) {
		this.ztcRoute = ztcRoute;
	}
	public void setFkRouteStartSiteId(String fkRouteStartSiteId) {
		this.fkRouteStartSiteId = fkRouteStartSiteId;
	}
	public void setFkRouteEndSiteId(String fkRouteEndSiteId) {
		this.fkRouteEndSiteId = fkRouteEndSiteId;
	}
	public void setFkZtcRouteId(String fkZtcRouteId) {
		this.fkZtcRouteId = fkZtcRouteId;
	}
	@Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=false,nullable=false,insertable=true,updatable=true,length=10)
    public String getId(){
        return this.id;
    }
    @Column(name ="fk_route_start_site_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
    public String getFkRouteStartSiteId() {
		return fkRouteStartSiteId;
	}
    @Column(name ="fk_route_end_site_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
    public String getFkRouteEndSiteId() {
		return fkRouteEndSiteId;
	}
    @Column(name ="distance",unique=false,nullable=true,insertable=true,updatable=true,length=8)
    public String getDistance(){
        return this.distance;
    }
    @Column(name ="price",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public String getPrice(){
        return this.price;
    }
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getType(){
        return this.type;
    }
    @Column(name ="fk_ztc_route_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
    public String getFkZtcRouteId() {
		return fkZtcRouteId;
	}
    @Transient
	public ZtcRoute getZtcRoute() {
		return ztcRoute;
	}
} 
